package the.broccoli.uc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 *  部门
 * </p>
 *
 * @author lei.liu
 * @since 2019-12-02
 */
@TableName("uc_dept")
public class Dept extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     *  部门ID
     */
    @TableId("dept_id")
    private String deptId;

    /**
     * 租户ID
     */
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 父级部门ID
     */
    @TableField("parent_id")
    private String parentId;

    /**
     * 部门名称
     */
    @TableField("dept_name")
    private String deptName;

    /**
     * 部门职责
     */
    @TableField("descr")
    private String descr;

    /**
     * 排列序号
     */
    @TableField("serial")
    private Integer serial;

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }
    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
    public Integer getSerial() {
        return serial;
    }

    public void setSerial(Integer serial) {
        this.serial = serial;
    }

    @Override
    public String toString() {
        return "Dept{" +
            "deptId=" + deptId +
            ", tenantId=" + tenantId +
            ", parentId=" + parentId +
            ", deptName=" + deptName +
            ", descr=" + descr +
            ", serial=" + serial +
        "}";
    }
}
